import request from "../utils/request";

export async function savePageInfo(data) {
  return request({
    method: "post",
    url: `/page/write`,
    data
  });
}

export async function readPageInfo(data) {
  return request({
    method: "post",
    url: `/page/read`,
    data
  });
}

export async function getPageInfoById(params) {
  return request({
    method: "get",
    url: `/page/info`,
    params
  });
}

export async function pageCopyById(params) {
  return request({
    method: "get",
    url: `/page/copy`,
    params
  });
}